package com.nian.message.rocketmq.consumer;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/10 0010 17:21
 */
@Slf4j
@Component
@RocketMQMessageListener(consumerGroup = "nian-message-service-consumer-group", topic = "producer_topic_test")
public class ConsumerListenerSimple implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        log.info("普通 *************************消费：普通消息主题************************");
        log.info("普通 ******************producer_topic_test******************");
        log.info("普通 CONTEXT：{}", message);
    }
}
